package com.schoolcloud.social.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;

/**
 * 帖子分类表
 * @TableName soc_post_category
 */
@TableName(value ="soc_post_category")
@Data
public class SocPostCategory implements Serializable {
    /**
     * 分类编号
     */
    @TableId(type = IdType.AUTO)
    private Integer categoryId;

    /**
     * 分类名称
     */
    private String name;

    /**
     * 描述
     */
    private String description;

    private Integer parentId;

    private Integer sort;

    private Integer level;

    private String icon;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
